Skip to content

Commit bce1c98

Browse files
committed
doc: add example
1 parent d19cb48 commit bce1c98

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/rules/prefer-string-raw.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ const file = "C:\\windows\\style\\path\\to\\file.js";
1919
const regexp = new RegExp('foo\\.bar');
2020
```
2121

22+
```js
23+
const file = `C:\\windows\\temp\\unicorn-${process.pid}.log`;
24+
```
25+
2226
## Pass
2327

2428
```js
@@ -28,3 +32,7 @@ const file = String.raw`C:\windows\style\path\to\file.js`;
2832
```js
2933
const regexp = new RegExp(String.raw`foo\.bar`);
3034
```
35+
36+
```js
37+
const file = String.raw`C:\windows\temp\unicorn-${process.pid}.log`;
38+
```

0 commit comments

Comments
 (0)