Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Resolve issue when there is a space in the folder names. Split apart …

…based on \n instead of \s
  • Loading branch information...
commit a618a759e6989ac5b97d4539bdd725a33da60cd6 1 parent 7c92e5e
@Icode4food Icode4food authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Factory/Loader/ModuleFormulaLoader.php
View
2  Factory/Loader/ModuleFormulaLoader.php
@@ -57,7 +57,7 @@ public function __construct(AssetFactory $factory, NamespaceMappingInterface $ma
public function load(ResourceInterface $resource)
{
$formulae = array();
- $tokens = preg_split("/\s+/", $resource->getContent());
+ $tokens = preg_split("/\n+/", $resource->getContent());
foreach ($tokens as $token) {
if (is_file($token)) {
$name = $this->factory->generateAssetName($token, array());
Please sign in to comment.
Something went wrong with that request. Please try again.