Repository: sveltejs/prettier-plugin-svelte (ts)

Issue:
Error when a component name begins with `Style`
The following code throws an error in prettier (`prettier --check file.svelte`):
```
    <StyledText    />

<style></style>
```

Error:
```
[error] file.svelte: Expected >
[error] > 1 | <styledTextInput  / ✂prettier:content✂="Cgo8c3R5bGU+"></style>
[error]     |                   ^ (1:19)
[error] 1: <styledTextInput  / ✂prettier:content✂="Cgo8c3R5bGU+"></style>
[error]
```

Pull request description:
(fix) case sensitive script/style snipping
Fixes #198

Patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2f8b01f..2c8a770 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,7 @@
 ## 2.1.2 (Unreleased)
 
 * Keep whitespace around script/style tags ([#197](https://github.com/sveltejs/prettier-plugin-svelte/issues/197))
+* Make script/style tag snipping case sensitive ([#198](https://github.com/sveltejs/prettier-plugin-svelte/issues/198))
 
 ## 2.1.1
 
diff --git a/src/lib/snipTagContent.ts b/src/lib/snipTagContent.ts
index 1f69955..0f8d119 100644
--- a/src/lib/snipTagContent.ts
+++ b/src/lib/snipTagContent.ts
@@ -1,7 +1,7 @@
 export const snippedTagContentAttribute = '✂prettier:content✂';
 
 export function snipTagContent(tagName: string, source: string, placeholder = ''): string {
-    const regex = new RegExp(`<${tagName}([^]*?)>([^]*?)<\/${tagName}>`, 'gi');
+    const regex = new RegExp(`<${tagName}([^]*?)>([^]*?)<\/${tagName}>`, 'g');
     return source.replace(regex, (_, attributes, content) => {
         const encodedContent = Buffer.from(content).toString('base64');
         return `<${tagName}${attributes} ${snippedTagContentAttribute}="${encodedContent}">${placeholder}</${tagName}>`;


Test patch:
diff --git a/test/printer/samples/component-style-script-tagname.html b/test/printer/samples/component-style-script-tagname.html
new file mode 100644
index 0000000..e3e40d7
--- /dev/null
+++ b/test/printer/samples/component-style-script-tagname.html
@@ -0,0 +1,10 @@
+<script></script>
+
+<Script />
+<Script>hello</Script>
+<ScriptedContent />
+<StyledText />
+<Style />
+<Style>hello</Style>
+
+<style></style>