prettier/tests/literal
Simon Lydell 69b7bd3fa8 Revert "Print \x and \u escapes in strings and regexes lowercase (#522)" (#574)
This reverts commit 7148184d65.

There are four types of literals where escapes were normalized:

1. Strings ('\xAb' and "\xAb")
2. Regexes (/\xAb/)
3. Untagged template literals (`\xAb`)
4. Tagged template literals (tag`\xAb`)

However, changing the case of the escapes alters the runtime behavior of
in two of the above cases.

```js
/\xAb/.source === '\\xAb' // true
String.raw`\xAb` === '\\xAb' // true
```

So for regexes and tagged template literals the escapes must not be
changed. Instead of enforcing lowercase escapes in only 50% of the
different cases, it was decided not to bother with escapes at all.

Closes #562.
2017-02-02 09:54:10 -08:00
..
__snapshots__ Revert "Print \x and \u escapes in strings and regexes lowercase (#522)" (#574) 2017-02-02 09:54:10 -08:00
jsfmt.spec.js Print numbers in a uniform way (#498) 2017-01-30 09:36:23 -08:00
number.js Print numbers in a uniform way (#498) 2017-01-30 09:36:23 -08:00