Skip to content

Commit 17530ff

Browse files
committed
Remove redundant variable and add documentation reference for esc string list
1 parent cc37321 commit 17530ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/phpDocumentor/GraphViz/Attribute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,12 @@ public function isValueContainingSpecials()
132132
/**
133133
* Encode special characters so the escape sequences aren't removed
134134
*
135+
* @see http://www.graphviz.org/doc/info/attrs.html#k:escString
135136
* @return string
136137
*/
137138
protected function encodeSpecials()
138139
{
139140
$value = $this->getValue();
140-
$validEscapes = 'NGEGTHLnlr';
141141
$regex = '(\'|"|\\x00|\\\\(?![\\\\NGETHLnlr]))';
142142
return preg_replace($regex, '\\\\$0', $value);
143143
}

0 commit comments

Comments
 (0)