IDE-886

Make sure it only works with the sole ending %