SyntaxError: Invalid regular expression: /^rgb(\b+\d{1,3})$/: Nothing to repeat

1,370 阅读1分钟

解决方案:

空格符\b需要两个斜杠\\转译

\b -> \\b