We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given two consecutive attributes in a DOM node, only the first one gets extracted.
For example in the following div only string1 will get extracted:
string1
<div attribute1="'string1'|translate" attribute2="'string2'|translate"> </div>
However if there is a non matching attribute between, it works as expected:
<div attribute1="'string1'|translate" class="test" attribute2="'string2'|translate"> </div>
This is due to the RegExp used inside extract.js and can be fixed by resetting lastIndex on line 311ff:
extract.js
lastIndex
str = matches[2].replace(/\\\'/g, '\''); self.addString(reference(n.startIndex), str); noDelimRegex.lastIndex = 0;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Given two consecutive attributes in a DOM node, only the first one gets extracted.
For example in the following div only
string1
will get extracted:However if there is a non matching attribute between, it works as expected:
This is due to the RegExp used inside
extract.js
and can be fixed by resettinglastIndex
on line 311ff:The text was updated successfully, but these errors were encountered: