79712091

Date: 2025-07-23 14:32:38
Score: 1
Natty:
Report link

I think an effective way, is to match all attributes regardless of quoting style and allow inner quotes within scriptlets.

private static final Pattern ATTRIBUTES_PATTERN = Pattern.compile(
    "(\\w+)\\s*=\\s*(\"((?:[^\"\\\\]|\\\\.)*?)\"|'((?:[^'\\\\]|\\\\.)*?)')"
);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mayowa Arokoola