allow dash in plain text

This commit is contained in:
mohrt
2003-02-13 17:58:19 +00:00
parent 6cb413bbfc
commit 77a0e291cc
3 changed files with 4 additions and 4 deletions

View File

@@ -1358,7 +1358,7 @@ class Smarty_Compiler extends Smarty {
$token = true;
} else if (preg_match('!^(off|no|false)$!', $token)) {
$token = false;
} else if (preg_match('!^[\w\.]+$!', $token)) {
} else if (preg_match('!^[\w\.-]+$!', $token)) {
/* If the token is just a string,
we double-quote it. */
$token = '"'.$token.'"';

View File

@@ -2985,8 +2985,8 @@ The value of $name is Bob.</programlisting>
count on each iteration. You can adjust the number, the interval
and the direction of the count, as well as determine whether or not
to print the value. You can run multiple counters concurrently by
supplying a unique id for each one. If you do not supply a name, the
name 'default' will be used.
supplying a unique name for each one. If you do not supply a name,
the name 'default' will be used.
</para>
<para>
If you supply the special "assign" attribute, the output of the

View File

@@ -1358,7 +1358,7 @@ class Smarty_Compiler extends Smarty {
$token = true;
} else if (preg_match('!^(off|no|false)$!', $token)) {
$token = false;
} else if (preg_match('!^[\w\.]+$!', $token)) {
} else if (preg_match('!^[\w\.-]+$!', $token)) {
/* If the token is just a string,
we double-quote it. */
$token = '"'.$token.'"';