Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 543 Bytes

SC1100.md

File metadata and controls

27 lines (16 loc) · 543 Bytes

Pattern: Use of Unicode dash

Issue: -

Description

A character that looks similar to - has made its way into your code. To fix it, simply delete and retype it as ASCII.

Example of incorrect code:

[[ 3 –gt 2 ]] # Uses unicode en-dash character

Example of correct code:

[[ 3 -gt 2 ]] # Uses regular ASCII hyphen-minus character

Exceptions

None. Use quotes if you want a literal Unicode dash character.

Further Reading