iuyoy / highlight-string-code

Highlight string as specific language. 在其他代码中高亮 SQL、HTML、CSS或者JS
https://marketplace.visualstudio.com/items?itemName=iuyoy.highlight-string-code
MIT License
17 stars 4 forks source link

v0.4.4 fix results in URL being read as JS #5

Closed josh-hemphill closed 3 years ago

josh-hemphill commented 3 years ago

A url that begins with https://js.cdn.something/somescript.js incorrectly starts a JS block

iuyoy commented 3 years ago

Thanks josh, I have modified the JS highlight regex pattern to avoid matching the case "://js". This change is available in v0.4.5. I hope it can be helpful.