(attrStr, parser)
| 181 | const attrsRegx = new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?', 'gm'); |
| 182 | |
| 183 | function parseAttributesExp(attrStr, parser) { |
| 184 | const matches = getAllMatches(attrStr, attrsRegx); |
| 185 | const len = matches.length; //don't make it inline |
| 186 | for (let i = 0; i < len; i++) { |
| 187 | let attrName = parser.processAttrName(matches[i][1]); |
| 188 | let attrVal = parser.replaceEntities(matches[i][4] || true); |
| 189 | |
| 190 | parser.outputBuilder.addAttribute(attrName, attrVal); |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | |
| 195 | const getAllMatches = function(string, regex) { |
no test coverage detected