Here you can find the source of normalizeSlashes(String path)
Parameter | Description |
---|---|
path | a parameter |
public static String normalizeSlashes(String path)
//package com.java2s; /**//from ww w. j a v a2s . c o m * Copyright (c) 2015-2016 Angelo ZERR * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Angelo Zerr <angelo.zerr@gmail.com> - initial API and implementation */ public class Main { /** * Replace '\' with '/' from the given path because tsserver normalize it * like this. * * @param path * @return */ public static String normalizeSlashes(String path) { return path.replaceAll("\\\\", "/"); } }